package api

import (
	"gitee.com/enjoy_5/spikes-rpc/internal/api/spikes"
	pb "gitee.com/enjoy_5/spikes-rpc/proto/spikes"
	grpc1 "gitee.com/xuxinzhi2206/corehub/grpc"
	"google.golang.org/grpc"
)

func SpikesRegisterGRPC() error {
	return grpc1.RegisterRPC(func(s *grpc.Server) {
		pb.RegisterSpikesServerServer(s, &spikes.SpikesServer{})
	})
}
